import {
  HTTP
} from '../utils/http.js'

class RedPackets extends HTTP {
  // 红包首页
  getHomeInfo(data) {
    return this.request({
      url: 's/lottery/RedMain14',
      method: 'POST',
      data: data,
      isShowLoading: false,
      isTempToken: true,
      isNeedResponseTime: true
    })
  }

  openRedpacket(data) {
    return this.request({
      url: 's/lottery/GetRed14',
      method: 'POST',
      isTempToken: true,
      data: data
    })
  }
  //领取红包优惠券
  openRecvCoupon(data) {
    return this.request({
      url: 's/lottery/RecvCoupon',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }

  getRecordInfo(data) {
    return this.request({
      url: 's/lottery/KryRedLog2',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }
  //获取我的排名
  getMyRedFen(data) {
    return this.request({
      url: 's/lottery/MyRedFen',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }


  //购买开奖次数
  buyRedCount(data) {
    return this.request({
      url: 's/lottery/BuyRedCount',
      method: 'POST',
      data: data,
      isShowLoading: false,
      isTempToken: true,
      isShowerrMsg: false
    })
  }

  //看广告给次数
  lookViewADRedCount(data) {
    return this.request({
      url: 's/lottery/ViewADRedCount',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }
  //获取分享图片-抽奖商品
  getLuckDrawGoods(data) {
    return this.request({
      url: 'yddgoods/LuckDrawGoods',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }

  //我已经中奖图片
  getWinningThePrize(data) {
    return this.request({
      url: 'yddgoods/WinningThePrize',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }


  //红包开奖分享图片
  getWinningThePrizePoster(data) {
    return this.request({
      url: 'luckdraw/WinningThePrizePoster',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }


  //获取公众号抽奖次数
  getCheckSubscribe(data) {
    return this.request({
      url: 's/lottery/CheckSubscribe',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }
  //擂主弹窗
  getRedLei(data) {
    return this.request({
      url: 's/lottery/RedLei',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }

  //红包场次次数获取记录
  getSpaceCountRecord(data) {
    return this.request({
      url: 's/lottery/GetSpaceCountRecord',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }

  // 获取红包次数获取记录
  getRedpacketNumRecord(data) {
    return this.request({
      url: 's/lottery/GetRedCountRecord',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }

  // 获取他人红包次数获取记录
  getSheRedCountRecord(data) {
    return this.request({
      url: 's/lottery/GetSheRedCountRecord',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: true
    })
  }

  // 获取分享任务配置
  ShareQuest() {
    return this.request({
      url: 's/lottery/ShareQuest',
      method: 'POST',
      isTempToken: true,
      isShowLoading: false
    })
  }
  //当前参与拆红包人数
  currentRedpackageRecord(data) {
    return this.request({
      url: 'lottery/CurrentRedpackageRecord12',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }
  //我邀请的人
  currentShareRecord(data) {
    return this.request({
      url: 's/lottery/CurrentShareRecord',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }

  //我的提现状态
  redMoneyStat12(data) {
    return this.request({
      url: 's/lottery/RedMoneyStat12',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }
  //提现到微信
  redMoneyCashWx(data) {
    return this.request({
      url: 's/lottery/RedMoneyCashWx',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }
  //存到余额
  redMoneyCashCard(data) {
    return this.request({
      url: 's/lottery/RedMoneyCashCard',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }

  //红包存入红包余额
  recvRed13(data) {
    return this.request({
      url: 's/lottery/RecvRed13',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }


  //红包首页信息流
  getRedMsg(data) {
    return this.request({
      url: 's/lottery/RedMsg',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }


  //红包状态
  getRedStatus(data) {
    return this.request({
      url: 's/lottery/RedStatus',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }
  //领财气值红包
  getRedCaiqiGet(data) {
    return this.request({
      url: 's/lottery/RedCaiqiGet',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }

  //游戏记录
  getAdvertRecord(data) {
    return this.request({
      url: 'game/AdvertRecord',
      method: 'POST',
      data: data,
      isTempToken: true,
      isShowLoading: false
    })
  }

  
}
export {
  RedPackets
}